package com.limao.Admin.DataClass;

import com.limao.Admin.DBProvider.AdminCityProvider;
import com.limao.Tool.CacheClass;

public class AdminSysMessClass {

	public String id;
	public String type;
	public String title;
	public String txt;
	public String image;
	public String androidurl;
	public String iosurl;
	public String objs;
	public String term;
	public String username;
	public String value1;
	public String value2;
	public String usernum;
	public String state;
	public String createtime;
	
	public String shengname;
	public String cityname;
	
	public String userid;
	
	/**
	 0:系统消息,如：维护、更新、公告、活动等推送
	 1：金额变动消息， 如：余额消费、现金分成等
	 2：状态变动消息，如：订单发货、提现完成
	 3：虚拟币变动消息，如：活跃、现货瓶数、豆豆 变动消息
	 **/
	public String icontype;  
	
	public void SetShengname(float shengid)
	{
		if(CacheClass.getIntValue(term)==6)
		{
			int id=(int) shengid;
			if(id==-1) this.shengname="全部";
			else
			{
				AdminCityClass obj=AdminCityProvider.getInstance().queryCity_Byid(id);
				if(obj!=null)
					this.shengname=obj.cityname;
			}
		}
	}
	public void SetCityname(float cityid)
	{
		
		if(CacheClass.getIntValue(term)==6)
		{
			int id=(int) cityid;
			if(cityid==-1) this.cityname="全部";
			else
			{
				AdminCityClass obj=AdminCityProvider.getInstance().queryCity_Byid(id);
				if(obj!=null)
					this.cityname=obj.cityname;
			}
		}
	}	

	
}
